
public class Picture
{
	public int x, y;
	public int[][] tab;
	
	private Picture up;
	private Picture down;
	private Picture left;
	private Picture right;

	public Picture(int a, int b, String map)
	{
		x = a;
		y = b;
		tab = Parser.parse(map);
	}
	
	public void linkToPics(Picture U, Picture D, Picture L, Picture R)
	{
		up = U;
		down = D;
		left = L;
		right = R;
	}
	
	public Picture goUp() { return up; }
	public Picture goDown() { return down; }
	public Picture goLeft() { return left; }
	public Picture goRight() { return right; }
	
}
